aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorNicholas D Steeves <nsteeves@gmail.com>2016-05-19 21:18:45 -0400
committerDavid Sterba <dsterba@suse.com>2016-05-25 16:35:14 -0400
commit0132761017e012ab4dc8584d679503f2ba26ca86 (patch)
treea81760d104ee6307d79ba5cf85460afa18a3df21 /fs/btrfs/tree-log.c
parent210aa27768bec4297a9d6ad0e5cab45935c775e9 (diff)
btrfs: fix string and comment grammatical issues and typos
Signed-off-by: Nicholas D Steeves <nsteeves@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index a111e275ab9e..f3a8939d63fb 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -2330,7 +2330,7 @@ static int replay_one_buffer(struct btrfs_root *log, struct extent_buffer *eb,
2330 break; 2330 break;
2331 2331
2332 /* for regular files, make sure corresponding 2332 /* for regular files, make sure corresponding
2333 * orhpan item exist. extents past the new EOF 2333 * orphan item exist. extents past the new EOF
2334 * will be truncated later by orphan cleanup. 2334 * will be truncated later by orphan cleanup.
2335 */ 2335 */
2336 if (S_ISREG(mode)) { 2336 if (S_ISREG(mode)) {
@@ -4937,7 +4937,7 @@ out_unlock:
4937 * the actual unlink operation, so if we do this check before a concurrent task 4937 * the actual unlink operation, so if we do this check before a concurrent task
4938 * sets last_unlink_trans it means we've logged a consistent version/state of 4938 * sets last_unlink_trans it means we've logged a consistent version/state of
4939 * all the inode items, otherwise we are not sure and must do a transaction 4939 * all the inode items, otherwise we are not sure and must do a transaction
4940 * commit (the concurrent task migth have only updated last_unlink_trans before 4940 * commit (the concurrent task might have only updated last_unlink_trans before
4941 * we logged the inode or it might have also done the unlink). 4941 * we logged the inode or it might have also done the unlink).
4942 */ 4942 */
4943static bool btrfs_must_commit_transaction(struct btrfs_trans_handle *trans, 4943static bool btrfs_must_commit_transaction(struct btrfs_trans_handle *trans,
@@ -4996,7 +4996,7 @@ static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans,
4996 while (1) { 4996 while (1) {
4997 /* 4997 /*
4998 * If we are logging a directory then we start with our inode, 4998 * If we are logging a directory then we start with our inode,
4999 * not our parents inode, so we need to skipp setting the 4999 * not our parent's inode, so we need to skip setting the
5000 * logged_trans so that further down in the log code we don't 5000 * logged_trans so that further down in the log code we don't
5001 * think this inode has already been logged. 5001 * think this inode has already been logged.
5002 */ 5002 */
@@ -5375,7 +5375,7 @@ static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans,
5375 log_dentries = true; 5375 log_dentries = true;
5376 5376
5377 /* 5377 /*
5378 * On unlink we must make sure all our current and old parent directores 5378 * On unlink we must make sure all our current and old parent directory
5379 * inodes are fully logged. This is to prevent leaving dangling 5379 * inodes are fully logged. This is to prevent leaving dangling
5380 * directory index entries in directories that were our parents but are 5380 * directory index entries in directories that were our parents but are
5381 * not anymore. Not doing this results in old parent directory being 5381 * not anymore. Not doing this results in old parent directory being