History

Merge tag 'for-linus-5.4-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux

Pull orangefs updates from Mike Marshall: "A fix and a cleanup. The fix: way back in the stone age (2003) mode was set to the magic number "755" in what is now fs/orangefs/namei.c(orangefs_symlink). Łukasz Wrochna reported it and Artur Świgoń sent in a patch to change it to octal. Maybe it shouldn't be a magic number at all but rather something like "S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH"... cleanup: Colin Ian King found a redundant assignment and sent in a patch to remove it" [ And no, octal numbers for permissions are a lot more legible than a binary 'or' of some line noise macros. So 0755 is preferred over trying to spell it out using "helpful" macros - Linus ] * tag 'for-linus-5.4-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux: orangefs: remove redundant assignment to err orangefs: Add octal zero prefix

Linus Torvalds committed 7 years ago

Commit 7a0d7962 parents 8e6ee05 e6b998a2 files · +2 −2Browse files

Unified · Split

2 files
  1. fs/orangefs/inode.c +1 −1
  2. fs/orangefs/namei.c +1 −1
fs/orangefs/inode.c+1−1
@@ -940,7 +940,7 @@ out: · 939 unmodified lines
940940 int orangefs_getattr(const struct path *path, struct kstat *stat,
941941 u32 request_mask, unsigned int flags)
942942 {
943− int ret = -ENOENT;
943+ int ret;
944944 struct inode *inode = path->dentry->d_inode;
945945
946946 gossip_debug(GOSSIP_INODE_DEBUG,
fs/orangefs/namei.c+1−1
@@ -224,7 +224,7 @@ static int orangefs_symlink(struct inode *dir, · 223 unmodified lines
224224 struct orangefs_object_kref ref;
225225 struct inode *inode;
226226 struct iattr iattr;
227− int mode = 755;
227+ int mode = 0755;
228228 int ret;
229229
230230 gossip_debug(GOSSIP_NAME_DEBUG, "%s: called\n", __func__);

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