aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/dir.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-05-26 11:53:25 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-27 22:05:02 -0400
commit7ea8085910ef3dd4f3cad6845aaa2b580d39b115 (patch)
treed9c1edb5906f943f7d70bfb4b65106e29772d379 /fs/reiserfs/dir.c
parentcc967be54710d97c05229b2e5ba2d00df84ddd64 (diff)
drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs/dir.c')
-rw-r--r--fs/reiserfs/dir.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/reiserfs/dir.c b/fs/reiserfs/dir.c
index 4455fbe269a3..198dabf1b2bb 100644
--- a/fs/reiserfs/dir.c
+++ b/fs/reiserfs/dir.c
@@ -14,8 +14,7 @@
14extern const struct reiserfs_key MIN_KEY; 14extern const struct reiserfs_key MIN_KEY;
15 15
16static int reiserfs_readdir(struct file *, void *, filldir_t); 16static int reiserfs_readdir(struct file *, void *, filldir_t);
17static int reiserfs_dir_fsync(struct file *filp, struct dentry *dentry, 17static int reiserfs_dir_fsync(struct file *filp, int datasync);
18 int datasync);
19 18
20const struct file_operations reiserfs_dir_operations = { 19const struct file_operations reiserfs_dir_operations = {
21 .llseek = generic_file_llseek, 20 .llseek = generic_file_llseek,
@@ -28,10 +27,9 @@ const struct file_operations reiserfs_dir_operations = {
28#endif 27#endif
29}; 28};
30 29
31static int reiserfs_dir_fsync(struct file *filp, struct dentry *dentry, 30static int reiserfs_dir_fsync(struct file *filp, int datasync)
32 int datasync)
33{ 31{
34 struct inode *inode = dentry->d_inode; 32 struct inode *inode = filp->f_mapping->host;
35 int err; 33 int err;
36 reiserfs_write_lock(inode->i_sb); 34 reiserfs_write_lock(inode->i_sb);
37 err = reiserfs_commit_for_inode(inode); 35 err = reiserfs_commit_for_inode(inode);