projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a37c4
)
btrfs: Add function to distinguish between data and btree inode
author
Nikolay Borisov
<nborisov@suse.com>
Fri, 9 Nov 2018 14:08:30 +0000
(16:08 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 17 Dec 2018 13:51:27 +0000
(14:51 +0100)
This will be used in future patches that remove the optional
extent_io_ops callbacks.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/btrfs_inode.h
b/fs/btrfs/btrfs_inode.h
index 97d91e55b70a8c6512a4d79e0c3fe8c42e07bc8a..213a6a63dac5454e8fdf28af8d4ef6c34c4ae91a 100644
(file)
--- a/
fs/btrfs/btrfs_inode.h
+++ b/
fs/btrfs/btrfs_inode.h
@@
-253,6
+253,11
@@
static inline bool btrfs_is_free_space_inode(struct btrfs_inode *inode)
return false;
}
+static inline bool is_data_inode(struct inode *inode)
+{
+ return btrfs_ino(BTRFS_I(inode)) != BTRFS_BTREE_INODE_OBJECTID;
+}
+
static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode,
int mod)
{