History

ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path

Al Viro committed 9 years ago

Commit 006351a1 parent 940ef1a1 file · +3 −1Browse files

Unified · Split

fs/ufs/inode.c+3−1
@@ -403,7 +403,9 @@ static int ufs_getfrag_block(struct inode *inode, sector_t fragment, struct buff · 402 unmodified lines
403 403
404 if (!create) {404 if (!create) {
405 phys64 = ufs_frag_map(inode, offsets, depth);405 phys64 = ufs_frag_map(inode, offsets, depth);
406 goto out;406 if (phys64)
407 map_bh(bh_result, sb, phys64 + frag);
408 return 0;
407 }409 }
408 410
409 /* This code entered only while writing ....? */411 /* This code entered only while writing ....? */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t