summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-02-05 17:47:25 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-03-03 09:58:45 -0800
commit4d0b0bd4385f0ce8d3b430f9667c5e2ca1de10af (patch)
tree7b6a92caad4e93c33d46bedb8c9da92fb14be372 /fs/f2fs/f2fs.h
parent0c872e2dedfc09f41a5604d1c5010f800c0bd8f1 (diff)
downloadlwn-4d0b0bd4385f0ce8d3b430f9667c5e2ca1de10af.tar.gz
lwn-4d0b0bd4385f0ce8d3b430f9667c5e2ca1de10af.zip
f2fs: simplfy a field name in struct f2fs_extent,extent_info
Rename a filed name from 'blk_addr' to 'blk' in struct {f2fs_extent,extent_info} as annotation of this field descripts its meaning well to us. By this way, we can avoid long statement in code of following patches. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index c3caa3cb5beb..5d2e52e31fac 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -278,7 +278,7 @@ enum {
struct extent_info {
unsigned int fofs; /* start offset in a file */
- u32 blk_addr; /* start block address of the extent */
+ u32 blk; /* start block address of the extent */
unsigned int len; /* length of the extent */
};
@@ -320,7 +320,7 @@ static inline void get_extent_info(struct extent_info *ext,
struct f2fs_extent i_ext)
{
ext->fofs = le32_to_cpu(i_ext.fofs);
- ext->blk_addr = le32_to_cpu(i_ext.blk_addr);
+ ext->blk = le32_to_cpu(i_ext.blk);
ext->len = le32_to_cpu(i_ext.len);
}
@@ -328,7 +328,7 @@ static inline void set_raw_extent(struct extent_info *ext,
struct f2fs_extent *i_ext)
{
i_ext->fofs = cpu_to_le32(ext->fofs);
- i_ext->blk_addr = cpu_to_le32(ext->blk_addr);
+ i_ext->blk = cpu_to_le32(ext->blk);
i_ext->len = cpu_to_le32(ext->len);
}