btrfs: remove fs/btrfs/compat.h
fs/btrfs/compat.h only contained trivial macro wrappers of drop_nlink() and inc_nlink(). This doesn't belong in mainline. Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include "locking.h"
|
||||
#include "print-tree.h"
|
||||
#include "backref.h"
|
||||
#include "compat.h"
|
||||
#include "tree-log.h"
|
||||
#include "hash.h"
|
||||
|
||||
@@ -936,7 +935,7 @@ again:
|
||||
parent_objectid,
|
||||
victim_name,
|
||||
victim_name_len)) {
|
||||
btrfs_inc_nlink(inode);
|
||||
inc_nlink(inode);
|
||||
btrfs_release_path(path);
|
||||
|
||||
ret = btrfs_unlink_inode(trans, root, dir,
|
||||
@@ -1006,7 +1005,7 @@ again:
|
||||
victim_parent = read_one_inode(root,
|
||||
parent_objectid);
|
||||
if (victim_parent) {
|
||||
btrfs_inc_nlink(inode);
|
||||
inc_nlink(inode);
|
||||
btrfs_release_path(path);
|
||||
|
||||
ret = btrfs_unlink_inode(trans, root,
|
||||
@@ -1490,7 +1489,7 @@ static noinline int link_to_fixup_dir(struct btrfs_trans_handle *trans,
|
||||
if (!inode->i_nlink)
|
||||
set_nlink(inode, 1);
|
||||
else
|
||||
btrfs_inc_nlink(inode);
|
||||
inc_nlink(inode);
|
||||
ret = btrfs_update_inode(trans, root, inode);
|
||||
} else if (ret == -EEXIST) {
|
||||
ret = 0;
|
||||
@@ -1851,7 +1850,7 @@ again:
|
||||
goto out;
|
||||
}
|
||||
|
||||
btrfs_inc_nlink(inode);
|
||||
inc_nlink(inode);
|
||||
ret = btrfs_unlink_inode(trans, root, dir, inode,
|
||||
name, name_len);
|
||||
if (!ret)
|
||||
|
Reference in New Issue
Block a user