diff options
Diffstat (limited to 'fs/hfs/file_cap.c')
-rw-r--r-- | fs/hfs/file_cap.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/fs/hfs/file_cap.c b/fs/hfs/file_cap.c index 77625077f..2268185e6 100644 --- a/fs/hfs/file_cap.c +++ b/fs/hfs/file_cap.c @@ -31,8 +31,6 @@ static hfs_rwret_t cap_info_read(struct file *, char *, hfs_rwarg_t, loff_t *); static hfs_rwret_t cap_info_write(struct file *, const char *, hfs_rwarg_t, loff_t *); -static void cap_info_truncate(struct inode *); - /*================ Function-like macros ================*/ /* @@ -46,26 +44,14 @@ static void cap_info_truncate(struct inode *); /*================ Global variables ================*/ -static struct file_operations hfs_cap_info_operations = { +struct file_operations hfs_cap_info_operations = { read: cap_info_read, write: cap_info_write, fsync: file_fsync, }; struct inode_operations hfs_cap_info_inode_operations = { - &hfs_cap_info_operations, /* default file operations */ - NULL, /* create */ - NULL, /* lookup */ - NULL, /* link */ - NULL, /* unlink */ - NULL, /* symlink */ - NULL, /* mkdir */ - NULL, /* rmdir */ - NULL, /* mknod */ - NULL, /* rename */ - NULL, /* readlink */ - NULL, /* follow_link */ - cap_info_truncate, /* truncate */ + setattr: hfs_notify_change_cap, }; /*================ File-local functions ================*/ @@ -265,17 +251,3 @@ static hfs_rwret_t cap_info_write(struct file *filp, const char *buf, mark_inode_dirty(inode); return count; } - -/* - * cap_info_truncate() - * - * This is the truncate field in the inode_operations structure for - * CAP metadata files. - */ -static void cap_info_truncate(struct inode *inode) -{ - if (inode->i_size > HFS_FORK_MAX) { - inode->i_size = HFS_FORK_MAX; - mark_inode_dirty(inode); - } -} |