Unionfs: update unionfs_fsync
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 2 Aug 2014 03:06:47 +0000 (23:06 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:53:45 +0000 (21:53 -0500)
commitad25064c232c81be9c39f1f58d0cf867aacdd753
treeebc5dc8ad75ab40b101772d74ae4033af4e5a1ba
parente7c75593fddf40536605366de35c0f595d14dbe2
Unionfs: update unionfs_fsync

In v3.16 generic_file_fsync will access ->i_sb->s_bdev->bd_disk, but
s_bdev is NULL for unionfs inode.  This will trigger a kernel panic in
xfstests generic/075, generic/091, etc. as of  kernel v3.16-rc1.

This patch fixes this issue by using __generic_file_fsync, a new
interface introduced in v3.16.

Signed-off-by: Mengyang Li <li.mengyang@stonybrook.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/file.c