diff options
author | David Sterba <dsterba@suse.cz> | 2011-05-05 06:44:41 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-05-06 06:34:03 -0400 |
commit | f2a97a9dbd86eb1ef956bdf20e05c507b32beb96 (patch) | |
tree | 756c2db8fee9c02df0e3217ea208a82b5f1d5e78 /fs/btrfs/inode.c | |
parent | 621496f4fd56195b7b273521f467c2945165481f (diff) |
btrfs: remove all unused functions
Remove static and global declarations and/or definitions. Reduces size
of btrfs.ko by ~3.4kB.
text data bss dec hex filename
402081 7464 200 409745 64091 btrfs.ko.base
398620 7144 200 405964 631cc btrfs.ko.remove-all
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2840989737b7..57122a5e8473 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -7185,58 +7185,6 @@ int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput) | |||
7185 | return 0; | 7185 | return 0; |
7186 | } | 7186 | } |
7187 | 7187 | ||
7188 | int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput, | ||
7189 | int sync) | ||
7190 | { | ||
7191 | struct btrfs_inode *binode; | ||
7192 | struct inode *inode = NULL; | ||
7193 | |||
7194 | spin_lock(&root->fs_info->delalloc_lock); | ||
7195 | while (!list_empty(&root->fs_info->delalloc_inodes)) { | ||
7196 | binode = list_entry(root->fs_info->delalloc_inodes.next, | ||
7197 | struct btrfs_inode, delalloc_inodes); | ||
7198 | inode = igrab(&binode->vfs_inode); | ||
7199 | if (inode) { | ||
7200 | list_move_tail(&binode->delalloc_inodes, | ||
7201 | &root->fs_info->delalloc_inodes); | ||
7202 | break; | ||
7203 | } | ||
7204 | |||
7205 | list_del_init(&binode->delalloc_inodes); | ||
7206 | cond_resched_lock(&root->fs_info->delalloc_lock); | ||
7207 | } | ||
7208 | spin_unlock(&root->fs_info->delalloc_lock); | ||
7209 | |||
7210 | if (inode) { | ||
7211 | if (sync) { | ||
7212 | filemap_write_and_wait(inode->i_mapping); | ||
7213 | /* | ||
7214 | * We have to do this because compression doesn't | ||
7215 | * actually set PG_writeback until it submits the pages | ||
7216 | * for IO, which happens in an async thread, so we could | ||
7217 | * race and not actually wait for any writeback pages | ||
7218 | * because they've not been submitted yet. Technically | ||
7219 | * this could still be the case for the ordered stuff | ||
7220 | * since the async thread may not have started to do its | ||
7221 | * work yet. If this becomes the case then we need to | ||
7222 | * figure out a way to make sure that in writepage we | ||
7223 | * wait for any async pages to be submitted before | ||
7224 | * returning so that fdatawait does what its supposed to | ||
7225 | * do. | ||
7226 | */ | ||
7227 | btrfs_wait_ordered_range(inode, 0, (u64)-1); | ||
7228 | } else { | ||
7229 | filemap_flush(inode->i_mapping); | ||
7230 | } | ||
7231 | if (delay_iput) | ||
7232 | btrfs_add_delayed_iput(inode); | ||
7233 | else | ||
7234 | iput(inode); | ||
7235 | return 1; | ||
7236 | } | ||
7237 | return 0; | ||
7238 | } | ||
7239 | |||
7240 | static int btrfs_symlink(struct inode *dir, struct dentry *dentry, | 7188 | static int btrfs_symlink(struct inode *dir, struct dentry *dentry, |
7241 | const char *symname) | 7189 | const char *symname) |
7242 | { | 7190 | { |