diff options
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 | ||||
-rw-r--r-- | fs/f2fs/file.c | 2 | ||||
-rw-r--r-- | fs/f2fs/namei.c | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 4f2c209ae8c1..c344a4d640cb 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -903,6 +903,7 @@ static inline int f2fs_readonly(struct super_block *sb) | |||
903 | int f2fs_sync_file(struct file *, loff_t, loff_t, int); | 903 | int f2fs_sync_file(struct file *, loff_t, loff_t, int); |
904 | void truncate_data_blocks(struct dnode_of_data *); | 904 | void truncate_data_blocks(struct dnode_of_data *); |
905 | void f2fs_truncate(struct inode *); | 905 | void f2fs_truncate(struct inode *); |
906 | int f2fs_getattr(struct vfsmount *, struct dentry *, struct kstat *); | ||
906 | int f2fs_setattr(struct dentry *, struct iattr *); | 907 | int f2fs_setattr(struct dentry *, struct iattr *); |
907 | int truncate_hole(struct inode *, pgoff_t, pgoff_t); | 908 | int truncate_hole(struct inode *, pgoff_t, pgoff_t); |
908 | int truncate_data_blocks_range(struct dnode_of_data *, int); | 909 | int truncate_data_blocks_range(struct dnode_of_data *, int); |
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index deefd258b847..8d2fce9e7e41 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -291,7 +291,7 @@ void f2fs_truncate(struct inode *inode) | |||
291 | } | 291 | } |
292 | } | 292 | } |
293 | 293 | ||
294 | static int f2fs_getattr(struct vfsmount *mnt, | 294 | int f2fs_getattr(struct vfsmount *mnt, |
295 | struct dentry *dentry, struct kstat *stat) | 295 | struct dentry *dentry, struct kstat *stat) |
296 | { | 296 | { |
297 | struct inode *inode = dentry->d_inode; | 297 | struct inode *inode = dentry->d_inode; |
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 1fe150276fad..810444ee6b5e 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c | |||
@@ -490,6 +490,7 @@ const struct inode_operations f2fs_dir_inode_operations = { | |||
490 | .rmdir = f2fs_rmdir, | 490 | .rmdir = f2fs_rmdir, |
491 | .mknod = f2fs_mknod, | 491 | .mknod = f2fs_mknod, |
492 | .rename = f2fs_rename, | 492 | .rename = f2fs_rename, |
493 | .getattr = f2fs_getattr, | ||
493 | .setattr = f2fs_setattr, | 494 | .setattr = f2fs_setattr, |
494 | .get_acl = f2fs_get_acl, | 495 | .get_acl = f2fs_get_acl, |
495 | #ifdef CONFIG_F2FS_FS_XATTR | 496 | #ifdef CONFIG_F2FS_FS_XATTR |
@@ -504,6 +505,7 @@ const struct inode_operations f2fs_symlink_inode_operations = { | |||
504 | .readlink = generic_readlink, | 505 | .readlink = generic_readlink, |
505 | .follow_link = page_follow_link_light, | 506 | .follow_link = page_follow_link_light, |
506 | .put_link = page_put_link, | 507 | .put_link = page_put_link, |
508 | .getattr = f2fs_getattr, | ||
507 | .setattr = f2fs_setattr, | 509 | .setattr = f2fs_setattr, |
508 | #ifdef CONFIG_F2FS_FS_XATTR | 510 | #ifdef CONFIG_F2FS_FS_XATTR |
509 | .setxattr = generic_setxattr, | 511 | .setxattr = generic_setxattr, |
@@ -514,6 +516,7 @@ const struct inode_operations f2fs_symlink_inode_operations = { | |||
514 | }; | 516 | }; |
515 | 517 | ||
516 | const struct inode_operations f2fs_special_inode_operations = { | 518 | const struct inode_operations f2fs_special_inode_operations = { |
519 | .getattr = f2fs_getattr, | ||
517 | .setattr = f2fs_setattr, | 520 | .setattr = f2fs_setattr, |
518 | .get_acl = f2fs_get_acl, | 521 | .get_acl = f2fs_get_acl, |
519 | #ifdef CONFIG_F2FS_FS_XATTR | 522 | #ifdef CONFIG_F2FS_FS_XATTR |