* Re: [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET
2012-01-06 11:12 [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET Amit Sahrawat
@ 2012-01-06 11:02 ` Amit Sahrawat
2012-01-11 11:35 ` Christoph Hellwig
1 sibling, 0 replies; 4+ messages in thread
From: Amit Sahrawat @ 2012-01-06 11:02 UTC (permalink / raw)
To: Alex Elder, Ben Myers, xfs masters, xfs, linux kernel
Cc: Christoph Hellwig, Amit Sahrawat
Courtesy: Dave Chinner
Thanks & Regards,
Amit Sahrawat
On Fri, Jan 6, 2012 at 4:42 PM, Amit Sahrawat <amit.sahrawat83@gmail.com> wrote:
> Removing the macro, as this is no more needed in the code.
> Tried to find the reference when it was last used - but the usage
> for this seemed to have been dropped long time ago.
>
> Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
> ---
> fs/xfs/xfs_sb.h | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
> index cb6ae71..f429d9d 100644
> --- a/fs/xfs/xfs_sb.h
> +++ b/fs/xfs/xfs_sb.h
> @@ -529,7 +529,6 @@ static inline int xfs_sb_version_hasprojid32bit(xfs_sb_t *sbp)
> #define XFS_BB_TO_FSB(mp,bb) \
> (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
> #define XFS_BB_TO_FSBT(mp,bb) ((bb) >> (mp)->m_blkbb_log)
> -#define XFS_BB_FSB_OFFSET(mp,bb) ((bb) & ((mp)->m_bsize - 1))
>
> /*
> * File system block to byte conversions.
> --
> 1.7.2.3
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET
@ 2012-01-06 11:12 Amit Sahrawat
2012-01-06 11:02 ` Amit Sahrawat
2012-01-11 11:35 ` Christoph Hellwig
0 siblings, 2 replies; 4+ messages in thread
From: Amit Sahrawat @ 2012-01-06 11:12 UTC (permalink / raw)
To: Alex Elder, Ben Myers, xfs masters, xfs, linux kernel
Cc: Christoph Hellwig, Amit Sahrawat
Removing the macro, as this is no more needed in the code.
Tried to find the reference when it was last used - but the usage
for this seemed to have been dropped long time ago.
Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
---
fs/xfs/xfs_sb.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index cb6ae71..f429d9d 100644
--- a/fs/xfs/xfs_sb.h
+++ b/fs/xfs/xfs_sb.h
@@ -529,7 +529,6 @@ static inline int xfs_sb_version_hasprojid32bit(xfs_sb_t *sbp)
#define XFS_BB_TO_FSB(mp,bb) \
(((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
#define XFS_BB_TO_FSBT(mp,bb) ((bb) >> (mp)->m_blkbb_log)
-#define XFS_BB_FSB_OFFSET(mp,bb) ((bb) & ((mp)->m_bsize - 1))
/*
* File system block to byte conversions.
--
1.7.2.3
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET
2012-01-06 11:12 [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET Amit Sahrawat
2012-01-06 11:02 ` Amit Sahrawat
@ 2012-01-11 11:35 ` Christoph Hellwig
2012-01-16 12:19 ` Amit Sahrawat
1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2012-01-11 11:35 UTC (permalink / raw)
To: Amit Sahrawat
Cc: linux kernel, xfs, Christoph Hellwig, xfs masters, Ben Myers,
Alex Elder
On Fri, Jan 06, 2012 at 04:42:18PM +0530, Amit Sahrawat wrote:
> Removing the macro, as this is no more needed in the code.
> Tried to find the reference when it was last used - but the usage
> for this seemed to have been dropped long time ago.
>
> Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
This looks good, but the subject should be something like:
"xfs: kill the unused XFS_BB_FSB_OFFSET macro"
Reviewed-by: Christoph Hellwig <hch@lst.de>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET
2012-01-11 11:35 ` Christoph Hellwig
@ 2012-01-16 12:19 ` Amit Sahrawat
0 siblings, 0 replies; 4+ messages in thread
From: Amit Sahrawat @ 2012-01-16 12:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs masters, Ben Myers, xfs, linux kernel, Alex Elder
thanks Christoph,
Resent the patch after the subject change.
Regards,
Amit Sahrawat
On Wed, Jan 11, 2012 at 5:05 PM, Christoph Hellwig <hch@infradead.org> wrote:
> On Fri, Jan 06, 2012 at 04:42:18PM +0530, Amit Sahrawat wrote:
>> Removing the macro, as this is no more needed in the code.
>> Tried to find the reference when it was last used - but the usage
>> for this seemed to have been dropped long time ago.
>>
>> Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
>
> This looks good, but the subject should be something like:
>
> "xfs: kill the unused XFS_BB_FSB_OFFSET macro"
>
>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-11 11:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06 11:12 [PATCH 2/2] xfs: cleanup XFS_BB_FSB_OFFSET Amit Sahrawat
2012-01-06 11:02 ` Amit Sahrawat
2012-01-11 11:35 ` Christoph Hellwig
2012-01-16 12:19 ` Amit Sahrawat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox