From: Arnd Bergmann <arnd@arndb.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
"Theodore Ts'o" <tytso@mit.edu>,
linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
Christoph Hellwig <hch@lst.de>, Jan Kara <jack@suse.cz>
Subject: Re: linux-next: manual merge of the vfs tree with the ext4 tree
Date: Wed, 18 May 2016 16:25:39 +0200 [thread overview]
Message-ID: <3539720.FHqN9VOtTL@wuerfel> (raw)
In-Reply-To: <20160517102355.4be4af45@canb.auug.org.au>
On Tuesday 17 May 2016 10:23:55 Stephen Rothwell wrote:
> ++static ssize_t ext4_direct_IO_read(struct kiocb *iocb, struct iov_iter *iter)
> +{
> + int unlocked = 0;
> + struct inode *inode = iocb->ki_filp->f_mapping->host;
> ++ loff_t offset = iocb->ki_pos;
> + ssize_t ret;
> +
> + if (ext4_should_dioread_nolock(inode)) {
> + /*
> + * Nolock dioread optimization may be dynamically disabled
> + * via ext4_inode_block_unlocked_dio(). Check inode's state
> + * while holding extra i_dio_count ref.
> + */
> + inode_dio_begin(inode);
> + smp_mb();
> + if (unlikely(ext4_test_inode_state(inode,
> + EXT4_STATE_DIOREAD_LOCK)))
> + inode_dio_end(inode);
> + else
> + unlocked = 1;
> + }
> + if (IS_DAX(inode)) {
> - ret = dax_do_io(iocb, inode, iter, offset, ext4_dio_get_block,
> ++ ret = dax_do_io(iocb, inode, iter, ext4_dio_get_block,
> + NULL, unlocked ? 0 : DIO_LOCKING);
> + } else {
> + ret = __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev,
> - iter, offset, ext4_dio_get_block,
> ++ iter, ext4_dio_get_block,
> + NULL, NULL,
> + unlocked ? 0 : DIO_LOCKING);
> + }
> + if (unlocked)
> + inode_dio_end(inode);
> return ret;
> }
>
I'm getting a warning here because the 'offset' variable is no longer
used, I've fixed it up on my test box like this:
commit 21fffc41b151a6146981487a3fee974e33c7005e
Author: Arnd Bergmann <arnd@arndb.de>
Date: Tue May 17 13:23:39 2016 +0200
ext4: fix linux-next mismerge
fs/ext4/inode.c: In function 'ext4_direct_IO_read':
fs/ext4/inode.c:3502:9: error: unused variable 'offset' [-Werror=unused-variable]
loff_t offset = iocb->ki_pos;
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index cd72f208c405..f7140ca66e3b 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3499,7 +3499,6 @@ static ssize_t ext4_direct_IO_read(struct kiocb *iocb, struct iov_iter *iter)
{
int unlocked = 0;
struct inode *inode = iocb->ki_filp->f_mapping->host;
- loff_t offset = iocb->ki_pos;
ssize_t ret;
if (ext4_should_dioread_nolock(inode)) {
next prev parent reply other threads:[~2016-05-18 14:25 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-17 0:23 linux-next: manual merge of the vfs tree with the ext4 tree Stephen Rothwell
2016-05-17 3:16 ` Theodore Ts'o
2016-05-18 14:25 ` Arnd Bergmann [this message]
2016-05-19 1:26 ` Stephen Rothwell
-- strict thread matches above, loose matches on Subject: below --
2020-01-27 22:51 Stephen Rothwell
2015-06-09 2:47 Stephen Rothwell
2015-05-11 0:49 Stephen Rothwell
2015-04-15 1:35 Stephen Rothwell
2015-04-14 1:30 Stephen Rothwell
2015-04-14 1:48 ` Al Viro
2015-04-14 17:00 ` Theodore Ts'o
2015-04-14 17:17 ` Al Viro
2015-04-14 21:02 ` Theodore Ts'o
2015-04-14 21:14 ` Al Viro
2015-04-13 1:48 Stephen Rothwell
2015-04-13 1:43 Stephen Rothwell
2015-04-07 4:00 Stephen Rothwell
2015-04-07 7:02 ` Christoph Hellwig
2015-04-07 7:36 ` Stephen Rothwell
2015-04-08 3:26 ` Theodore Ts'o
2015-04-14 16:18 ` Christoph Hellwig
2015-04-14 20:43 ` Theodore Ts'o
2014-05-27 2:07 Stephen Rothwell
2014-04-22 1:13 Stephen Rothwell
2012-01-06 2:54 Stephen Rothwell
2012-01-06 20:46 ` Djalal Harouni
2011-12-21 0:18 Stephen Rothwell
2011-12-21 0:43 ` Stephen Rothwell
2011-07-18 3:36 Stephen Rothwell
2011-07-25 2:38 ` Stephen Rothwell
2009-05-19 4:23 Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3539720.FHqN9VOtTL@wuerfel \
--to=arnd@arndb.de \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=tytso@mit.edu \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox