mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Minor comment merge conflict in mlx5. Staging driver has a fixup due to the skb->xmit_more changes in 'net-next', but was removed in 'net'. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
f83f715195
527 changed files with 4631 additions and 6928 deletions
|
|
@ -290,18 +290,8 @@ static ssize_t idle_store(struct device *dev,
|
|||
struct zram *zram = dev_to_zram(dev);
|
||||
unsigned long nr_pages = zram->disksize >> PAGE_SHIFT;
|
||||
int index;
|
||||
char mode_buf[8];
|
||||
ssize_t sz;
|
||||
|
||||
sz = strscpy(mode_buf, buf, sizeof(mode_buf));
|
||||
if (sz <= 0)
|
||||
return -EINVAL;
|
||||
|
||||
/* ignore trailing new line */
|
||||
if (mode_buf[sz - 1] == '\n')
|
||||
mode_buf[sz - 1] = 0x00;
|
||||
|
||||
if (strcmp(mode_buf, "all"))
|
||||
if (!sysfs_streq(buf, "all"))
|
||||
return -EINVAL;
|
||||
|
||||
down_read(&zram->init_lock);
|
||||
|
|
@ -635,25 +625,15 @@ static ssize_t writeback_store(struct device *dev,
|
|||
struct bio bio;
|
||||
struct bio_vec bio_vec;
|
||||
struct page *page;
|
||||
ssize_t ret, sz;
|
||||
char mode_buf[8];
|
||||
int mode = -1;
|
||||
ssize_t ret;
|
||||
int mode;
|
||||
unsigned long blk_idx = 0;
|
||||
|
||||
sz = strscpy(mode_buf, buf, sizeof(mode_buf));
|
||||
if (sz <= 0)
|
||||
return -EINVAL;
|
||||
|
||||
/* ignore trailing newline */
|
||||
if (mode_buf[sz - 1] == '\n')
|
||||
mode_buf[sz - 1] = 0x00;
|
||||
|
||||
if (!strcmp(mode_buf, "idle"))
|
||||
if (sysfs_streq(buf, "idle"))
|
||||
mode = IDLE_WRITEBACK;
|
||||
else if (!strcmp(mode_buf, "huge"))
|
||||
else if (sysfs_streq(buf, "huge"))
|
||||
mode = HUGE_WRITEBACK;
|
||||
|
||||
if (mode == -1)
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
down_read(&zram->init_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue