linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ross Zwisler <ross.zwisler@linux.intel.com>
To: "Theodore Ts'o" <tytso@mit.edu>, Jan Kara <jack@suse.cz>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ext4: remove unused function ext4_aligned_io()
Date: Sun, 20 Nov 2016 22:02:17 -0700	[thread overview]
Message-ID: <1479704537-21069-1-git-send-email-ross.zwisler@linux.intel.com> (raw)
In-Reply-To: <1479458830-22955-9-git-send-email-jack@suse.cz>

The last user of ext4_aligned_io() was the DAX path in
ext4_direct_IO_write().  This usage was removed by Jan Kara's patch
entitled "ext4: Rip out DAX handling from direct IO path".

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
---
 fs/ext4/ext4.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 8b76311..8a8a9b2 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3262,13 +3262,6 @@ static inline void ext4_clear_io_unwritten_flag(ext4_io_end_t *io_end)
 	}
 }
 
-static inline bool ext4_aligned_io(struct inode *inode, loff_t off, loff_t len)
-{
-	int blksize = 1 << inode->i_blkbits;
-
-	return IS_ALIGNED(off, blksize) && IS_ALIGNED(len, blksize);
-}
-
 extern struct iomap_ops ext4_iomap_ops;
 
 #endif	/* __KERNEL__ */
-- 
2.7.4

  reply	other threads:[~2016-11-21  5:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18  8:47 [PATCH 0/10 v3] ext4: Convert ext4 DAX IO to iomap framework Jan Kara
2016-11-18  8:47 ` [PATCH 01/10] ext4: Factor out checks from ext4_file_write_iter() Jan Kara
2016-11-18  8:47 ` [PATCH 02/10] ext4: Let S_DAX set only if DAX is really supported Jan Kara
2016-11-18  8:47 ` [PATCH 03/10] ext4: Convert DAX reads to iomap infrastructure Jan Kara
2016-11-18  8:47 ` [PATCH 04/10] ext4: Use iomap for zeroing blocks in DAX mode Jan Kara
2016-11-18  8:47 ` [PATCH 05/10] ext4: DAX iomap write support Jan Kara
2016-11-18  8:47 ` [PATCH 06/10] ext4: Avoid split extents for DAX writes Jan Kara
2016-11-18  8:47 ` [PATCH 07/10] ext4: Convert DAX faults to iomap infrastructure Jan Kara
2016-11-18  8:47 ` [PATCH 08/10] ext4: Rip out DAX handling from direct IO path Jan Kara
2016-11-21  5:02   ` Ross Zwisler [this message]
2016-11-21 16:54     ` [PATCH] ext4: remove unused function ext4_aligned_io() Theodore Ts'o
2016-11-18  8:47 ` [PATCH 09/10] ext2: Use iomap_zero_range() for zeroing truncated page in DAX path Jan Kara
2016-11-18  8:47 ` [PATCH 10/10] dax: Rip out get_block based IO support Jan Kara
2016-11-21 16:53 ` [PATCH 0/10 v3] ext4: Convert ext4 DAX IO to iomap framework Theodore Ts'o

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=1479704537-21069-1-git-send-email-ross.zwisler@linux.intel.com \
    --to=ross.zwisler@linux.intel.com \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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;
as well as URLs for NNTP newsgroup(s).