Re: [PATCH 0/6 EARLY RFC] Btrfs: Get rid of whole page I/O.

2014-03-19 Thread Aneesh Kumar K.V
David Sterba writes: > On Tue, Mar 18, 2014 at 01:48:00PM +0630, chandan wrote: >> The earlier patchset posted by Chandra Seethraman was to get 4k >> blocksize to work with ppc64's 64k PAGE_SIZE. > > Are we talking about metadata block sizes or data block sizes? > >> The root node of "tree root"

[PATCH] btrfs: Fix a memleak on failed posix acl conversion

2010-07-19 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- fs/btrfs/acl.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index d16..6d1410e 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -60,8 +60,10 @@ static struct posix_acl *btrfs_get_acl(struct

[PATCH -V2 5/6] debug-btrfs: Add pager support

2010-02-04 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/Makefile |2 +- debugbtrfs/debug_btrfs.h |3 + debugbtrfs/debug_tree.c | 107 debugbtrfs/pager.c | 49 + lib/ctree.c | 22 ++-- lib/extent-tree.c| 10 +- lib/print-tree.c

[PATCH -V2 6/6] debug-btrfs: Add print_inode command

2010-02-04 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/cmds.c | 191 debugbtrfs/debug_btrfs_cmds.ct |3 + lib/volumes.c | 16 lib/volumes.h | 12 +++ 4 files changed, 206 insertions(+), 16 deletions

[PATCH -V2 4/6] debug-btrfs: Add command to dump each of the btrfs trees

2010-02-04 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/Makefile|2 +- debugbtrfs/debug_btrfs_cmds.ct | 24 debugbtrfs/debug_tree.c| 238 3 files changed, 263 insertions(+), 1 deletions(-) create mode 100644 debugbtrfs/debug_tree.c

[PATCH -V2 3/6] debug-btrfs: Add open file system command

2010-02-04 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/cmds.c | 23 +++ debugbtrfs/debug_btrfs.c | 16 +++- debugbtrfs/debug_btrfs.h |1 + debugbtrfs/debug_btrfs_cmds.ct |3 +++ 4 files changed, 34 insertions(+), 9 deletions(-) diff

[PATCH -V2 1/6] btrfs-progs: Move files around

2010-02-04 Thread Aneesh Kumar K.V
Build libbtrfs.a and link against that for the commands Signed-off-by: Aneesh Kumar K.V --- Makefile| 72 +++ lib/Makefile| 47 bit-radix.c => lib/bit-radix.c |

[PATCH -V2 2/6] btrfs-progs: Add debug-btrfs command

2010-02-04 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- Makefile |3 ++ debugbtrfs/Makefile| 44 + debugbtrfs/cmds.c | 27 ++ debugbtrfs/debug_btrfs.c | 59 debugbtrfs

[PATCH 6/6] debug-btrfs: Add pager support

2010-01-31 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/Makefile |5 +- debugbtrfs/debug_btrfs.h |3 + debugbtrfs/debug_tree.c | 106 debugbtrfs/pager.c | 49 + lib/ctree.c | 22 ++-- lib/extent-tree.c| 10 +- lib/print-tree.c

[PATCH 5/6] debug-btrfs: Add command to dump each of the btrfs trees

2010-01-31 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/debug_btrfs_cmds.ct | 19 - debugbtrfs/debug_tree.c| 159 --- 2 files changed, 99 insertions(+), 79 deletions(-) diff --git a/debugbtrfs/debug_btrfs_cmds.ct b/debugbtrfs/debug_btrfs_cmds.ct index

[PATCH 4/4] debug-btrfs: Add print_inode command

2010-01-31 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/cmds.c | 100 debugbtrfs/debug_btrfs_cmds.ct |3 + 2 files changed, 103 insertions(+), 0 deletions(-) diff --git a/debugbtrfs/cmds.c b/debugbtrfs/cmds.c index cd2901b..be7da31 100644 --- a

[PATCH 2/4] btrfs-progs: Add debug-btrfs command

2010-01-31 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- Makefile |3 + debugbtrfs/Makefile| 44 +++ debugbtrfs/cmds.c | 27 + debugbtrfs/debug_btrfs.c | 59 ++ debugbtrfs/debug_btrfs.h | 29 + debugbtrfs/debug_btrfs_cmds.ct

[PATCH 3/4] debug-btrfs: Add open file system command

2010-01-31 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- debugbtrfs/cmds.c | 23 + debugbtrfs/debug_btrfs.c | 16 +-- debugbtrfs/debug_btrfs.h |1 + debugbtrfs/debug_btrfs_cmds.ct |3 ++ debugbtrfs/debug_tree.c| 54

[PATCH 1/4] btrfs-progs: Move files around

2010-01-31 Thread Aneesh Kumar K.V
Build libbtrfs.a and link against that for the commands Signed-off-by: Aneesh Kumar K.V --- Makefile| 72 +++ lib/Makefile| 47 bit-radix.c => lib/bit-radix.c |

[RFC PATCH] Add debug-btrfs command to btrfs-progs

2010-01-31 Thread Aneesh Kumar K.V
Hi, The below set of patches add debug-btrfs command to btrfs-progs package. The new command depends on the libss.a library provided e2fsprogs. To build one have to set E2FSPRGS_BUILD_DIR to point to the e2fsprogs build directory. Once we get e2fsprogs to create a proper libss package we should be

[PATCH 1/3] btrfs: Drop the link count update from btrfs_unlink_inode

2010-01-23 Thread Aneesh Kumar K.V
This helps to cleanup the rename and unlink case Signed-off-by: Aneesh Kumar K.V --- fs/btrfs/compat.h |1 + fs/btrfs/inode.c| 12 fs/btrfs/tree-log.c |5 ++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/fs/btrfs/compat.h b/fs/btrfs/compat.h

[PATCH 2/3] btrfs: Update directory link count correctly while creation

2010-01-23 Thread Aneesh Kumar K.V
This patch make sure we update directory link count correctly during mkdir and rename Signed-off-by: Aneesh Kumar K.V --- fs/btrfs/inode.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 32aa27d..9a56b3b

[PATCH 3/3] btrfs: Update the directory link count correctly

2010-01-23 Thread Aneesh Kumar K.V
This patch make sure we update the directory link count properly during delete Signed-off-by: Aneesh Kumar K.V --- fs/btrfs/inode.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9a56b3b..12b9d6e 100644 --- a/fs

[PATCH -v2] btrfs: Use correct values when updating inode i_size on fallocate

2010-01-21 Thread Aneesh Kumar K.V
Even though we allocate more, we should be updating inode i_size as per the arguments passed Signed-off-by: Aneesh Kumar K.V --- Changes from V1: We should update i_size only if actual_len and cur_offset are both larger than i_size. Otherwise if actual_len is < i_size and cur_offset >