Skip to content

Commit 154a4dc

Browse files
Alex Shijankara
authored andcommitted
fs/reiserfs: remove unused macros
these macros are never used from introduced. better to remove them. Link: https://lore.kernel.org/r/1579602338-57079-1-git-send-email-alex.shi@linux.alibaba.com Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: Bharath Vedartham <linux.bhar@gmail.com> Cc: Hariprasad Kelam <hariprasad.kelam@gmail.com> Cc: Jason Yan <yanaijie@huawei.com> Cc: zhengbin <zhengbin13@huawei.com> Cc: Jia-Ju Bai <baijiaju1990@gmail.com> Cc: reiserfs-devel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz>
1 parent ed21c58 commit 154a4dc

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎fs/reiserfs/journal.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
/* gets a struct reiserfs_journal_list * from a list head */
5757
#define JOURNAL_LIST_ENTRY(h) (list_entry((h), struct reiserfs_journal_list, \
5858
j_list))
59-
#define JOURNAL_WORK_ENTRY(h) (list_entry((h), struct reiserfs_journal_list, \
60-
j_working_list))
6159

6260
/* must be correct to keep the desc and commit structs at 4k */
6361
#define JOURNAL_TRANS_HALF 1018

‎fs/reiserfs/procfs.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ static int show_version(struct seq_file *m, void *unused)
6363
#define MAP( i ) D4C( objectid_map( sb, rs )[ i ] )
6464

6565
#define DJF( x ) le32_to_cpu( rs -> x )
66-
#define DJV( x ) le32_to_cpu( s_v1 -> x )
6766
#define DJP( x ) le32_to_cpu( jp -> x )
6867
#define JF( x ) ( r -> s_journal -> x )
6968

‎fs/reiserfs/stree.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -918,12 +918,6 @@ int comp_items(const struct item_head *stored_ih, const struct treepath *path)
918918
return memcmp(stored_ih, ih, IH_SIZE);
919919
}
920920

921-
/* unformatted nodes are not logged anymore, ever. This is safe now */
922-
#define held_by_others(bh) (atomic_read(&(bh)->b_count) > 1)
923-
924-
/* block can not be forgotten as it is in I/O or held by someone */
925-
#define block_in_use(bh) (buffer_locked(bh) || (held_by_others(bh)))
926-
927921
/* prepare for delete or cut of direct item */
928922
static inline int prepare_for_direct_item(struct treepath *path,
929923
struct item_head *le_ih,

0 commit comments

Comments
 (0)