Re: [PATCH 4/7] btrfs: cleanup: removed unused 'btrfs_start_transaction_lflush'

2013-08-08 Thread David Sterba
On Thu, Aug 08, 2013 at 12:43:20AM +0300, Sergei Trofimovich wrote:
 From: Sergei Trofimovich sly...@gentoo.org
 
 Found by uselex.rb:
  btrfs_start_transaction_lflush: [R]: exported from: fs/btrfs/btrfs.o 
  fs/btrfs/transaction.o fs/btrfs/built-in.o

http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg24047.html

 btrfs_start_transaction_lflush()

Transcaction API, removing the func does not make sense without removing
BTRFS_RESERVE_FLUSH_LIMIT at the same time.


Miao introduced this function in 08e007d2e57744472a9424735a to enhance
flushing logic to avoid deadlocks.

david
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 4/7] btrfs: cleanup: removed unused 'btrfs_start_transaction_lflush'

2013-08-07 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org

Found by uselex.rb:
 btrfs_start_transaction_lflush: [R]: exported from: fs/btrfs/btrfs.o 
 fs/btrfs/transaction.o fs/btrfs/built-in.o

Signed-off-by: Sergei Trofimovich sly...@gentoo.org
---
 fs/btrfs/transaction.c | 7 ---
 fs/btrfs/transaction.h | 2 --
 2 files changed, 9 deletions(-)

diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index ff891d2..57c3239 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -497,13 +497,6 @@ struct btrfs_trans_handle *btrfs_start_transaction(struct 
btrfs_root *root,
 BTRFS_RESERVE_FLUSH_ALL);
 }
 
-struct btrfs_trans_handle *btrfs_start_transaction_lflush(
-   struct btrfs_root *root, int num_items)
-{
-   return start_transaction(root, num_items, TRANS_START,
-BTRFS_RESERVE_FLUSH_LIMIT);
-}
-
 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root)
 {
return start_transaction(root, 0, TRANS_JOIN, 0);
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h
index af8293f..05d4be1 100644
--- a/fs/btrfs/transaction.h
+++ b/fs/btrfs/transaction.h
@@ -131,8 +131,6 @@ int btrfs_end_transaction(struct btrfs_trans_handle *trans,
  struct btrfs_root *root);
 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
   int num_items);
-struct btrfs_trans_handle *btrfs_start_transaction_lflush(
-   struct btrfs_root *root, int num_items);
 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root 
*root);
 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
-- 
1.8.3.2

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html