fs/affs/file.c: forward declaration clean-up
authorFabian Frederick <fabf@skynet.be>
Sat, 13 Dec 2014 00:57:47 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:51 +0000 (12:42 -0800)
-Move file_operations to avoid forward declarations.

-Remove unused declarations.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/file.c

index 1ed590aafecf744884c3e55af7cd9627d1c729f8..8e2e60ea1e2333f3e1eeb900f921b855a91772dd 100644 (file)
 #error PAGE_SIZE must be at least 4096
 #endif
 
-static int affs_grow_extcache(struct inode *inode, u32 lc_idx);
-static struct buffer_head *affs_alloc_extblock(struct inode *inode, struct buffer_head *bh, u32 ext);
-static inline struct buffer_head *affs_get_extblock(struct inode *inode, u32 ext);
 static struct buffer_head *affs_get_extblock_slow(struct inode *inode, u32 ext);
-static int affs_file_open(struct inode *inode, struct file *filp);
-static int affs_file_release(struct inode *inode, struct file *filp);
-
-const struct file_operations affs_file_operations = {
-       .llseek         = generic_file_llseek,
-       .read           = new_sync_read,
-       .read_iter      = generic_file_read_iter,
-       .write          = new_sync_write,
-       .write_iter     = generic_file_write_iter,
-       .mmap           = generic_file_mmap,
-       .open           = affs_file_open,
-       .release        = affs_file_release,
-       .fsync          = affs_file_fsync,
-       .splice_read    = generic_file_splice_read,
-};
-
-const struct inode_operations affs_file_inode_operations = {
-       .setattr        = affs_notify_change,
-};
 
 static int
 affs_file_open(struct inode *inode, struct file *filp)
@@ -961,3 +939,19 @@ int affs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
        mutex_unlock(&inode->i_mutex);
        return ret;
 }
+const struct file_operations affs_file_operations = {
+       .llseek         = generic_file_llseek,
+       .read           = new_sync_read,
+       .read_iter      = generic_file_read_iter,
+       .write          = new_sync_write,
+       .write_iter     = generic_file_write_iter,
+       .mmap           = generic_file_mmap,
+       .open           = affs_file_open,
+       .release        = affs_file_release,
+       .fsync          = affs_file_fsync,
+       .splice_read    = generic_file_splice_read,
+};
+
+const struct inode_operations affs_file_inode_operations = {
+       .setattr        = affs_notify_change,
+};